<% layout('/layout/default.html', {title: '', bodyClass: 'app header-fixed sidebar-fixed aside-menu-fixed sidebar-lg-show', libs: ['tabPage','validate']}){ %>
<header class="app-header navbar">
    <% include('/modules/sys/sysIndex/topMenu.html'){} %>
</header>
<div class="app-body">
    <div class="sidebar">
        <% include('/modules/sys/sysIndex/leftMenu.html'){} %>
    </div>
    <main class="main">
        <div id="tabpanel"></div>
    </main>
    <aside class="aside-menu">
        <% include('/modules/sys/sysIndex/rightMenu.html'){} %>
    </aside>
</div>

<div id="desktopTabPage" class="hide" data-title="仪表盘" data-url="/desktop"></div>
<script src="${ctxStatic}/modules/sys/index.js"></script>
<script language="JavaScript">
    //判断当前窗口是否有顶级窗口，如果有就让当前的窗口的地址栏发生变化，
    //这样就可以让登陆窗口显示在整个窗口了

    $(function () {
        if (window.top != null && window.top.document.URL != document.URL) {
            window.top.location = document.URL;
        }
    });
</script>
<% } %>